package com.ruoyi.cfuser.api.service;


import com.ruoyi.cfuser.api.domain.CfUser;
import com.ruoyi.cfuser.api.factory.RemoteCfUserFallbackFactory;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.core.web.page.TableDataInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 用户服务
 *
 * @author ruoyi
 */
@FeignClient(contextId = "remoteCfUserService", value = ServiceNameConstants.CFUSER_SERVICE, fallbackFactory = RemoteCfUserFallbackFactory.class)
public interface RemoteCfUserService {

    /**
     * 获取用户详细信息
     */
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id);

    /**
     * 查询用户列表
     */
    @GetMapping("/list")
    public TableDataInfo list(CfUser cfUser);
}
